﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>会员登录</title>
    <link href="<?php echo CON_STATIC_URL; ?>zhsjr/css/login/login.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <!--头部-->
   <?php include './application/views/common/zhs_header.php';?>
    <div class="mainNav">
        <div class="mainNav_inner clearfix w1000center">
           
            <div class="loginTxt">登录</div>
        </div>
    </div>
    <!--头部结束-->
    <div class="main">
        <div class="acLoginBox w1000center clearfix">
            <div class="imgbg"><ul>
  <li>
    <img src="<?php echo CON_STATIC_URL; ?>zhsjr/images/img_logo1.jpg" alt="ppdai logo">
  </li>
</ul></div>
            <form id="Login">
                <div class="innerLoginBox clearfix">
                 <input type="hidden" name="act" value="login" />
  				<input type="hidden" name="last_url" value="<?PHP echo $_SERVER['HTTP_REFERER'];?>" />
                    <div id="wraploginErrorMessage">
                    </div>
                    <ul id="login_nav">
                        <li class="clearfix">
                            <input type="text" name="usernm" id="UserName" class="name" placeholder="手机号/邮箱" onkeydown="jump('Password', false)" tabindex="1" dta="name" />
                        </li>
                            <li class="clearfix">
                                <input type="password" name="password" id="Password" class="pass" autocomplete="off" placeholder="密码" onkeydown="jump('login_btn', true)" tabindex="2" />
                            </li>
                        <li class="clearfix">
                            <a href="/password/zhs_forget" class="forgotPassword" style="margin-right: 30px;">忘记密码</a>
                            <input type="checkbox" class="rememberMe" name="rememberMe" id="rememberMe" />
                            <label class="rememberMeText" for="rememberMe">记住我</label>
                            <span class="airBubble">
                                <img src="<?php echo CON_STATIC_URL; ?>zhsjr/images/question.png" />
                                <div class="tag">
                                    <div class="arrow"><em></em><span></span></div>
                                    一周内自动登录，公共场合慎用
                                </div>
                            </span>
                        </li>
                        <li>
                            <input type="button" id="login_btn_1" class="lgn " value="立 即 登 录" tabindex="4"  onclick="login_submit();"/>
                        </li>
                        <li class="mb10">
                            <a href="/reg.html" style="margin-right: 30px;">免费注册</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>
    </div>
    
  <?php include './application/views/common/zhs_footer.php';?>
    <script src="<?php echo CON_STATIC_URL; ?>zhsjr/js/login/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="<?php echo CON_STATIC_URL; ?>zhsjr/js/login/jquery.placeholder.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="<?php echo CON_STATIC_URL; ?>zhsjr/js/login/jquery.cookie.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="<?php echo CON_STATIC_URL; ?>zhsjr/js/login/login.min.js" type="text/javascript" charset="utf-8"></script>
  	<script type="text/javascript" src="<?php echo CON_STATIC_URL; ?>zhsjr/js/jquery.form.js"></script>
</body>

<script type="text/javascript">


function login_submit(){
	var options = {
		url : '/login',
		dataType: "json",
		type:"post",
		success : function(ret) {
			if(ret.msg==''){
				location=ret.data.url;
			}else{
				$("#wraploginErrorMessage").html(ret.msg);
				$("#wraploginErrorMessage").addClass("loginErrorMessage");
			}
		}
	};
	$("#Login").ajaxSubmit(options);
	return false;
}

$(document).keyup(function(event){
	if(event.keyCode ==13){
		login_submit();
	}
});
</script>
</html>
